
      let inp1 = document.querySelector(".inp1");
      let inp2 = document.querySelector(".inp2");
      let inp3 = document.querySelector(".inp3");
      let btn1 = document.querySelector(".btn1");
      let liebiao = document.querySelector("select");
      btn1.onclick = function () {
        if (inp1.value.trim() === "" || inp2.value.trim() === "")
          return alert("请输入内容");
        if (isNaN(inp1.value) || isNaN(inp2.value))
          return alert("请输入数字格式");
        if (liebiao.value === "+") {
          inp3.value = inp1.value * 1 + inp2.value * 1;
        } else if (liebiao.value === "-") {
          inp3.value = inp1.value * 1 - inp2.value * 1;
        } else if (liebiao.value === "*") {
          inp3.value = inp1.value * 1 * inp2.value * 1;
        } else if (liebiao.value === "/") {
          inp3.value = inp1.value / inp2.value;
        }
      };

      let inp4 = document.querySelector(".inp4");
      let inp5 = document.querySelector(".inp5");
      let btn2 = document.querySelector(".btn2");
      let inp6 = document.querySelector(".inp6");

      btn2.onclick = function () {
        let str = "";
        if (inp4.value.trim() === "" || inp5.value.trim() === "")
          return alert("请输入内容");
        if (isNaN(inp4.value) || isNaN(inp5.value))
          return alert("请输入数字格式");
        for (let i = inp4.value; i <= inp5.value; i++) {
          let g = i % 10;
          let s = parseInt(i / 10) % 10;
          let b = parseInt(i / 100);
          if (g ** 3 + s ** 3 + b ** 3 === i) {
            str += i + " ";
          }
        }
        inp6.value = str;
      };

      let inp7 = document.querySelector(".inp7");
      let inp8 = document.querySelector(".inp8");
      let btn3 = document.querySelector(".btn3");
      let inp9 = document.querySelector(".inp9");

      btn3.onclick = function () {
        let str = "";
        if (inp7.value.trim() === "" || inp8.value.trim() === "")
          return alert("请输入内容");
        if (isNaN(inp7.value) || isNaN(inp8.value))
          return alert("请输入数字格式");
        for (let i = inp7.value; i <= inp8.value; i++) {
          let g = i % 10;
          let s = parseInt(i / 10) % 10;
          if (i % 7 === 0 || i.toString().includes("7")) {
            str += i + " ";
          }
        }
        inp9.value = str;
      };

      let inp10 = document.querySelector(".inp10");
      let btn4 = document.querySelector(".btn4");
      let inp11 = document.querySelector(".inp11");
      btn4.onclick = function () {
        if (inp10.value.trim() === "") return alert("请输入内容");
        if (isNaN(inp10.value)) return alert("请输入数字格式");
        if (
          (inp10.value % 4 === 0 && inp10.value % 100 !== 0) ||
          inp10.value % 400 === 0
        ) {
          inp11.value = `${inp10.value}是闰年`;
        } else {
          inp11.value = `${inp10.value}是平年`;
        }
      };

      let inp12 = document.querySelector(".inp12");
      let inp13 = document.querySelector(".inp13");
      let btn5 = document.querySelector(".btn5");
      let inp14 = document.querySelector(".inp14");
      btn5.onclick = function () {
        if (inp12.value.trim() === "" || inp13.value.trim() === "")
          return alert("请输入内容");
        if (isNaN(inp12.value) || isNaN(inp13.value))
          return alert("请输入数字格式");
        let str = 0;
        for (let i = inp12.value; i <= inp13.value; i++) {
          if (i % 2 === 0) {
            str += i * 1;
          }
        }
        inp14.value = str;
      };

      let inp15 = document.querySelector(".inp15");
      let inp16 = document.querySelector(".inp16");
      let btn6 = document.querySelector(".btn6");
      let inp17 = document.querySelector(".inp17");
      btn6.onclick = function () {
        let str = 0;
        if (inp15.value.trim() === "" || inp16.value.trim() === "")
          return alert("请输入内容");
        if (isNaN(inp15.value) || isNaN(inp16.value))
          return alert("请输入数字格式");
        for (let i = inp15.value; i <= inp16.value; i++) {
          let g = i % 10;
          let s = parseInt(i / 10) % 10;
          let b = parseInt(i / 100);
          if (g ** 3 + s ** 3 + b ** 3 === i) {
            str++;
          };
        };
        inp17.value = str;
      };